package com.fbs.demo1111.aop.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/aop")
public class Controller {

    @GetMapping("getTest")
    public String getTest(){
        System.out.println("get方法");
        return "get方法";
    }

    @PostMapping("postTest")
    public String postTest(){
        System.out.println("post方法");
        return "post方法";
    }
}